package com.qishenyuan.competition.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qishenyuan.competition.dto.FindJobBriefReq;
import com.qishenyuan.competition.dto.FindJobTopicReq;
import com.qishenyuan.competition.model.FindJob;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qishenyuan.competition.vo.FindJobBriefResp;
import com.qishenyuan.competition.vo.FindJobResp;

import java.util.List;

/**
 * <p>
 * 找工作帖子信息表 服务类
 * </p>
 *
 * @author qishenyuan
 * @since 2025-03-25
 */
public interface FindJobService extends IService<FindJob> {

    /**
     * 分页获取求职帖子列表
     */
    IPage<FindJobBriefResp> getFindJobList(FindJobBriefReq findJobBriefReq);

    /**
     * 获取求职帖子详情
     */
    FindJobResp getFindJob(Integer id);

    /**
     * 发帖
     */
    void createFindJobTopic(String token, FindJobTopicReq findJobTopicReq);

    /**
     * 搜索求职帖
     */
    List<FindJobBriefResp> searchFindJob(String key);
}
